Optimal. Leaf size=74 \[ \frac {b^2}{4 a^3 f \left (a \cos ^2(e+f x)+b\right )^2}-\frac {b}{a^3 f \left (a \cos ^2(e+f x)+b\right )}-\frac {\log \left (a \cos ^2(e+f x)+b\right )}{2 a^3 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07, antiderivative size = 74, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {4138, 266, 43} \[ \frac {b^2}{4 a^3 f \left (a \cos ^2(e+f x)+b\right )^2}-\frac {b}{a^3 f \left (a \cos ^2(e+f x)+b\right )}-\frac {\log \left (a \cos ^2(e+f x)+b\right )}{2 a^3 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rule 266
Rule 4138
Rubi steps
\begin {align*} \int \frac {\tan (e+f x)}{\left (a+b \sec ^2(e+f x)\right )^3} \, dx &=-\frac {\operatorname {Subst}\left (\int \frac {x^5}{\left (b+a x^2\right )^3} \, dx,x,\cos (e+f x)\right )}{f}\\ &=-\frac {\operatorname {Subst}\left (\int \frac {x^2}{(b+a x)^3} \, dx,x,\cos ^2(e+f x)\right )}{2 f}\\ &=-\frac {\operatorname {Subst}\left (\int \left (\frac {b^2}{a^2 (b+a x)^3}-\frac {2 b}{a^2 (b+a x)^2}+\frac {1}{a^2 (b+a x)}\right ) \, dx,x,\cos ^2(e+f x)\right )}{2 f}\\ &=\frac {b^2}{4 a^3 f \left (b+a \cos ^2(e+f x)\right )^2}-\frac {b}{a^3 f \left (b+a \cos ^2(e+f x)\right )}-\frac {\log \left (b+a \cos ^2(e+f x)\right )}{2 a^3 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.33, size = 129, normalized size = 1.74 \[ -\frac {a^2 \cos ^2(2 (e+f x)) \log (a \cos (2 (e+f x))+a+2 b)+(a+2 b)^2 \log (a \cos (2 (e+f x))+a+2 b)+2 a \cos (2 (e+f x)) ((a+2 b) \log (a \cos (2 (e+f x))+a+2 b)+2 b)+2 b (2 a+3 b)}{2 a^3 f (a \cos (2 (e+f x))+a+2 b)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.53, size = 102, normalized size = 1.38 \[ -\frac {4 \, a b \cos \left (f x + e\right )^{2} + 3 \, b^{2} + 2 \, {\left (a^{2} \cos \left (f x + e\right )^{4} + 2 \, a b \cos \left (f x + e\right )^{2} + b^{2}\right )} \log \left (a \cos \left (f x + e\right )^{2} + b\right )}{4 \, {\left (a^{5} f \cos \left (f x + e\right )^{4} + 2 \, a^{4} b f \cos \left (f x + e\right )^{2} + a^{3} b^{2} f\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.39, size = 81, normalized size = 1.09 \[ \frac {1}{4 f a \left (a +b \left (\sec ^{2}\left (f x +e \right )\right )\right )^{2}}-\frac {\ln \left (a +b \left (\sec ^{2}\left (f x +e \right )\right )\right )}{2 f \,a^{3}}+\frac {1}{2 f \,a^{2} \left (a +b \left (\sec ^{2}\left (f x +e \right )\right )\right )}+\frac {\ln \left (\sec \left (f x +e \right )\right )}{f \,a^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.37, size = 102, normalized size = 1.38 \[ \frac {\frac {4 \, a b \sin \left (f x + e\right )^{2} - 4 \, a b - 3 \, b^{2}}{a^{5} \sin \left (f x + e\right )^{4} + a^{5} + 2 \, a^{4} b + a^{3} b^{2} - 2 \, {\left (a^{5} + a^{4} b\right )} \sin \left (f x + e\right )^{2}} - \frac {2 \, \log \left (a \sin \left (f x + e\right )^{2} - a - b\right )}{a^{3}}}{4 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.40, size = 142, normalized size = 1.92 \[ \frac {\frac {3\,a+2\,b}{4\,a^2}+\frac {b\,{\mathrm {tan}\left (e+f\,x\right )}^2}{2\,a^2}}{f\,\left (2\,a\,b+a^2+b^2+{\mathrm {tan}\left (e+f\,x\right )}^2\,\left (2\,b^2+2\,a\,b\right )+b^2\,{\mathrm {tan}\left (e+f\,x\right )}^4\right )}+\frac {\mathrm {atanh}\left (\frac {4\,b^2\,{\mathrm {tan}\left (e+f\,x\right )}^2}{8\,b^2+\frac {8\,b^3}{a}+4\,b^2\,{\mathrm {tan}\left (e+f\,x\right )}^2+\frac {8\,b^3\,{\mathrm {tan}\left (e+f\,x\right )}^2}{a}}\right )}{a^3\,f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________